package com.yanqu.road.entity.config.musicroom;

import java.util.ArrayList;
import java.util.List;

public class MusicRoomBuildBaseConfig {
    private int buildType;
    private List<Integer> params = new ArrayList<>();

    public MusicRoomBuildBaseConfig(int buildType) {
        this.buildType = buildType;
    }

    public int getBuildType() {
        return buildType;
    }

    public void setBuildType(int buildType) {
        this.buildType = buildType;
    }

    public List<Integer> getParams() {
        return params;
    }

    public void setParams(List<Integer> params) {
        this.params = params;
    }

    public int getParam(int index) {
        if (index < 0 || index >= params.size())
            return 0;
        return params.get(index);
    }

    public int getScheduleType(){
        return getParam(0);
    }

    public int getCheckInNumLimit(){
        return getParam(1);
    }

    public int getFurnitureNumLimit(){
        return getParam(2);
    }

    public int getFurnitureMaxLevel(){
        return getParam(3);
    }
}
